<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新增热门搜索词</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">搜索词名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="sName" value="">
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post"  id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">

    <link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
    <php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
    <link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
    <script type="text/javascript">
                highlight_subnav('{:U('SearchKey/index')}');

                $(function () {
                    $('.time').datetimepicker({
                        format: 'yyyy-mm-dd hh:ii',
                        language: "zh-CN",
                        minView: 2,
                        autoclose: true
                    });
                    showTab();
                });
    </script>
</block>
